package com.gxnzd.communityelderly.commom;

/**
 * ClassName: BaseContext
 * Package: com.itheima.reggie.common
 * Description:
 *  线程变量类 对线程变量进行设置
 * @Author 胡海峰
 * @Create
 * @Version 1.0
 */
public class BaseContext {
    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static Long getThreadLocal() {
        return threadLocal.get();
    }

    public static void setThreadLocal(Long id) {
        threadLocal.set(id);
    }
}
